package com.zhou.cloud.entry;

import lombok.Getter;
import org.springframework.web.client.RestTemplate;

/**
 * @descrition: RestTempate封装处理
 * @author: zhouyongjun
 * @date: 2022/11/22
 **/
@Getter
public class DemoHttpClient {
    String url;
    String serivceName;
    RestTemplate restTemplate;

    public DemoHttpClient(String baseUrl, RestTemplate restTemplate) {
        this.url = baseUrl;
        this.restTemplate = restTemplate;
    }

    public DemoHttpClient(String baseUrl, String serivceName, RestTemplate restTemplate) {
        this.url = baseUrl;
        this.serivceName = serivceName;
        this.restTemplate = restTemplate;
    }
}
